<template>
	<view class="content-item">

		<view class="content-title" v-if="isShowTitle">{{workdata.name}}</view>
		<u-line color="#efefef" v-if="isShowTitle"></u-line>



		<work-content-item :workdatalist="workdata.childs" :lyType="workdata.lyType"></work-content-item>


	</view>
</template>

<script>
	import workContentItem from './work-content-item.vue';


	export default {
		name: "workItem",
		components: {
			workContentItem
		},
		props: {
			workdata: {
				type: Object,
				default: () => {
					return {}
				},
			}
		},
		data() {
			return {
				isShowTitle: this.workdata.lyType != 1,
			}
		},

	}
</script>

<style lang="scss" scoped>
	.content-item {
		background-color: white;
		border-radius: 8rpx;
		margin: 10rpx 20rpx 0;

		.content-title {
			height: 80rpx;
			line-height: 80rpx;
			margin-left: 20rpx;
			color: $black33;
			font-weight: 600;
			font-size: 32rpx;
		}
	}
</style>
